package com.fingard.dsp.bank.reqrespobj.mimiprogimag;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;
import com.fingard.text.StringHelper;

import java.util.HashMap;

public class ReqMiniProgImag extends RequestBase {
    /** 商户账号 */
    public String ownAct = "";

    /** 商户订单号 */
    public String rdSeq = "";

    /** 小程序页面 */
    public String page = "";

    public ReqMiniProgImag(HashMap<String, String> p_hashMap, ReqRespHeader p_header) throws Exception {
        reqHeader = p_header;

        if (p_hashMap.containsKey("OurBankAccount")) {
            ownAct = p_hashMap.get("OurBankAccount");
            if (StringHelper.isNullOrEmpty(ownAct)) {
                ownAct = "";
            }
        }

        if (p_hashMap.containsKey("RdSeq")) {
            rdSeq = p_hashMap.get("RdSeq");
            if (StringHelper.isNullOrEmpty(rdSeq)) {
                rdSeq = "";
            }
        }
        if (p_hashMap.containsKey("Page")) {
            page = p_hashMap.get("Page");
            if (StringHelper.isNullOrEmpty(page)) {
                page = "";
            }
        }
    }
}